package android.explorer.dialogUltility;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.widget.TextView;

public class ShowYesNoDialog  extends AlertDialog.Builder{
	public ShowYesNoDialog(Context ct,String question,String title,OnClickListener lis) {
		super(ct);
		TextView tv=new TextView(ct);
		tv.setText(question);
		this.setTitle(title);
		this.setView(tv);
		this.setNeutralButton("Yes", lis);
		this.setNegativeButton("No", new DialogInterface.OnClickListener() {
					public void onClick(DialogInterface dialog, int whichButton) {
						dialog.cancel();
					}
				});
		this.show();
	}
}
